package com.farm.wcp.DO;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;

import com.farm.wcp.pojo.FileType;

@Repository
public class FileTypeDO {
	@Resource
	private	SessionFactory sessionFactory;
	public List<FileType> select(){
		Session session=	sessionFactory.getCurrentSession();
		return (List<FileType>)	session.createQuery("from FileType  ORDER BY sort asc").list();
	}
}
